package org.sippr.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.sippr.pojo.Server;

import java.util.List;

@Mapper
public interface ServerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Server record);

    int insertSelective(Server record);

    Server selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Server record);

    int updateByPrimaryKey(Server record);

    Server findByUrl(String address);

    List<Server> list();

    List<Server> findByState(int state);
}